namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0121 : DbMigration
    {
        public override void Up()
        {
            //DropForeignKey("dbo.IcmRequestParcel", "ProjectId", "dbo.bgm_project");
            //DropIndex("dbo.IcmRequestParcel", new[] { "ProjectId" });
            AlterColumn("dbo.IcmRequestParcel", "ProjectId", c => c.Int());
            //AddForeignKey("dbo.IcmRequestParcel", "ProjectId", "dbo.bgm_project", "bgm_proj_seq");
            //CreateIndex("dbo.IcmRequestParcel", "ProjectId");
        }
        
        public override void Down()
        {
            //DropIndex("dbo.IcmRequestParcel", new[] { "ProjectId" });
            //DropForeignKey("dbo.IcmRequestParcel", "ProjectId", "dbo.bgm_project");
            AlterColumn("dbo.IcmRequestParcel", "ProjectId", c => c.Int(nullable: false));
            //CreateIndex("dbo.IcmRequestParcel", "ProjectId");
            //AddForeignKey("dbo.IcmRequestParcel", "ProjectId", "dbo.bgm_project", "bgm_proj_seq", cascadeDelete: true);
        }
    }
}
